\documentclass[12pt,reqno]{article}
%\usepackage[mathscr]{eucal}
\usepackage{amsmath,amsthm,thmtools}
%\usepackage{amsthm}
%\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{mathrsfs}
\usepackage[english]{babel}
\usepackage[babel=true]{csquotes}
\usepackage[pdftex]{graphicx}
\usepackage{graphicx}
\newcommand{\IP}{{\bf P}}
\newcommand{\w}{{\bf w}}
\newcommand{\cE}{{\mathcal E}}
\newcommand{\cS}{{\mathcal S}}
\newcommand{\cB}{{\mathcal B}}
\newcommand{\cD}{{\mathcal D}}
\newcommand{\cF}{{\mathcal F}}
\newcommand{\cM}{{\mathcal M}}
\newcommand{\cH}{{\mathcal H}}
\newcommand{\cC}{{\mathcal C}}
\newcommand{\cT}{{\mathcal T}}
\newcommand{\ck}{{\mathcal k}}
\newcommand{\cl}{{\mathcal l}}
\newcommand{\cL}{{\mathcal L}}
\newcommand{\cR}{{\mathcal R}}
\newcommand{\cn}{{\mathcal n}}
\newcommand{\rr}{{\mathbf r}}
\newcommand{\cu}{{\mathbf u}}
\newcommand{\cv}{{\mathbf v}}
\newcommand{\cx}{{\mathbf x}}
\newcommand{\cy}{{\mathbf y}}
\newcommand{\cz}{{\mathbf z}}

\newcommand{\p}{\partial}
\newcommand{\dX}{\dot X}
\newcommand{\bst}{\|^*}

\newcommand{\eps}{\varepsilon}

\newcommand{\TT}{{\mathbb T}}
\newcommand{\cP}{{\mathcal P}}
\newcommand{\cQ}{{\mathcal Q}}
\newcommand{\cO}{{\mathcal O}}
\newcommand{\EE}{{\mathbb E}}
\newcommand{\e}{\varepsilon}
\newcommand{\vp}{\varphi}
\newcommand{\om}{\omega}
\newcommand{\dar}{\|}

\newcommand{\tom}{{\tilde\omega}}
\newcommand{\tb}{{\tilde\beta}}

\newcommand{\ov}{\overline}
 \newcommand{\bs}{\bar{\sigma}}

 \newcommand{\bm}{b_{max}}
 \newcommand{\lan}{\langle}
  \newcommand{\ran}{\rangle}
   \newcommand{\llan}{\langle\langle}
    \newcommand{\rran}{\rangle\rangle}
   \newcommand{\strela}{\rightharpoonup}
\newcommand{\No}[0]{\ensuremath{\Vert}}
\newcommand{\ue}[0]{\ensuremath{\mathbf{u}}}
\newcommand{\ve}[0]{\ensuremath{\mathbf{v}}}
\newcommand{\ix}[0]{\ensuremath{\mathbf{x}}}
\newcommand{\igrec}[0]{\ensuremath{\mathbf{y}}}
\newcommand{\ka}[0]{\ensuremath{\mathbf{k}}}
\newcommand{\ygrec}[0]{\ensuremath{\mathbf{y}}}
\newcommand{\zero}[0]{\ensuremath{\mathbf{0}}}
\newcommand{\xibold}[0]{\ensuremath{\mathbf{\xi}}}
\newcommand{\D}[0]{\ensuremath{\mathbf{\Delta}}}
\newcommand{\Ce}[0]{\ensuremath{\mathcal{C}}}
\newcommand{\One}[0]{\ensuremath{\mathbf{1}}}
\newcommand{\Ha}[0]{\ensuremath{\mathcal{H}}}
\newcommand{\cN}[0]{\ensuremath{\mathcal{N}}}
\newcommand{\E}[0]{\ensuremath{\mathbf{E}}}
\newcommand{\F}[0]{\ensuremath{\mathcal{F}}}
\newcommand{\G}[0]{\ensuremath{\mathcal{G}}}
\newcommand{\Oo}[0]{\ensuremath{\mathbb{O}}}
\newcommand{\Pe}[0]{\ensuremath{\mathbf{P}}}
\newcommand{\R}[0]{\ensuremath{\mathbb{R}}}
\newcommand{\T}[0]{\ensuremath{\mathbb{T}}}
\newcommand{\Z}[0]{\ensuremath{\mathbb{Z}}}
\newcommand{\N}[0]{\ensuremath{\mathbb{N}}}

\newcommand{\Ess}[0]{\ensuremath{\textsl{Ess}}}
\newcommand{\EnDe}[0]{\ensuremath{\textsl{EnDe}}}
\newcommand{\Rem}[0]{\ensuremath{\textsl{Rem}}}
\DeclareMathOperator{\esssup}{ess\,sup}
\makeatletter
%\newcommand{\Noo}[0]{\ensuremath{|||}}

\renewcommand{\thesection}{\Alph{section}} 


\numberwithin{equation}{subsection}

\newtheorem{theo}{\sc{Theorem}}[subsection]
\newtheorem{lemm}[theo]{\sc{Lemma}}
\newtheorem{defi}[theo]{\sc{Definition}}
\newtheorem{definf}[theo]{\sc{Definition (INFORMAL)}}
\newtheorem{examp}[theo]{\sc{Example}}
\newtheorem{obs}[theo]{\sc{Observation}}
\newtheorem{assu}[theo]{\sc{Assumption}}
\newtheorem{nota}[theo]{\sc{Notation}}
\newtheorem{cor}[theo]{\sc{Corollary}}
\newtheorem{rmk}[theo]{\sc{Remark}}
\newtheorem*{theo*}{\sc{Theorem}}
\newtheorem*{lemm*}{\sc{Lemma}}
\newtheorem*{defi*}{\sc{Definition}}
\newtheorem*{definf*}{\sc{Definition (INFORMAL)}}
\newtheorem*{examp*}{\sc{Example}}
\newtheorem*{obs*}{\sc{Observation}}
\newtheorem*{assu*}{\sc{Assumption}}
\newtheorem*{nota*}{\sc{Notation}}
\newtheorem*{cor*}{\sc{Corollary}}
\newtheorem*{rmk*}{\sc{Remark}}

\newtheoremstyle{exerc}%
{3pt}% Space above
{3pt}% Space below 
{\itshape\color{black}}% Body font
{}% Indent amount
{\bfseries\color{blue}}% Theorem head font
{.}% Punctuation after theorem head
{.5em}% Space after theorem head
{}% Theorem head spec (can be left empty, meaning normal)


\theoremstyle{exerc}
\newtheorem{exo}{\sc{Exercice}}[subsection]
\newtheorem*{exo*}{\sc{Exercice}}
\newtheorem{sol}{\sc{Solution}}[subsection]
\newtheorem*{sol*}{\sc{Solution}}


\newenvironment{blue}{\textcolor{blue}}
\\
\newenvironment{red}{\textcolor{red}}
\\
\newenvironment{brown}{\textcolor{brown}}
\\
\newenvironment{green}{\textcolor{green}}
\\
\newenvironment{violet}{\textcolor{violet}}
\\
\newenvironment{orange}{\textcolor{orange}}

\usepackage{sectsty}
\sectionfont{\color{red}} 
\subsectionfont{\color{violet}}

\author{}
\title{EXERCICE SOLUTION}
\date{\today}
\begin{document}

\begin{sol}
.
\end{sol}

\begin{sol}
.
\end{sol}

\end{document}